package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 渠道收益表
 * </p>
 *
 * @author Shane
 * @since 2020-04-09
 */
@TableName("channel_earn")
public class ChannelEarn implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 渠道id
	 */
	private Integer cid;

	/**
	 * 收益名，参考sys_config表
	 */
	@TableField(value = "`key`")
	private String key;

	/**
	 * 收益值
	 */
	@TableField(value = "`value`")
	private Double value;

	/**
	 * 
	 */
	@TableField(value="create_time")
	private Date createTime;

	public ChannelEarn() {
	}

	public ChannelEarn(Integer cid, String key, Double value) {
		this.cid = cid;
		this.key = key;
		this.value = value;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCid() {
		return cid;
	}

	public void setCid(Integer cid) {
		this.cid = cid;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public Double getValue() {
		return value;
	}

	public void setValue(Double value) {
		this.value = value;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
